package com.wiiss.system.domain;

import com.wiiss.common.annotation.Excel;
import com.wiiss.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 第三方接口配置对象 mcs_system_config
 *
 * @author my
 * @date 2022-01-06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "第三方系统配置")
public class SystemOrignConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 接口类型
     */
    @Excel(name = "接口类型")
    private String type;

    /**
     * 接口编码
     */
    @Excel(name = "接口编码")
    private String code;

    /**
     * 接口名称
     */
    @Excel(name = "接口名称")
    private String name;

    /**
     * 接口地址
     */
    @Excel(name = "接口地址")
    private String url;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("code", getCode())
                .append("name", getName())
                .append("url", getUrl())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
